package com.seuic.hnjiningposapp.hnapps.util;

import java.text.SimpleDateFormat;
import java.util.Date;

public class DateUtil {
	public static final String NOMAL_DATE= "yyyyMMdd";
	public static final String DATE_PATTERN = "MMdd";
	public static final String TIME_PATTERN = "HHmmss";
	public static final String DATE_TIME_PATTERN ="yyMMddHHmmss";
	public static final String M_TIME_PATTERN ="MMddHHmmss";
	public static final String NOMAL_DATETIME= "yyyyMMddHHmmss";
	
	
	public static String getCurrentTime(String format) {
		String returnStr = null;
		SimpleDateFormat f = new SimpleDateFormat(format);
		Date date = new Date();
		returnStr = f.format(date);
		return returnStr;
	}
}
